﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using eCommerce.Core.Domain.Products;

namespace eCommerce.Data.Mapping.Products
{
    public class ItemAttributeValueMapping : EntityTypeConfiguration<ItemAttributeValue>
    {

        public ItemAttributeValueMapping()
        {
            this.ToTable("ItemAttributeValues");
            this.HasKey(p => p.Id);
           
      //     this.HasRequired(c=>c.Item).WithOptional(c=>c.ItemAttributeValue).WillCascadeOnDelete(false);
            
        }
    }
}
